package day0608;

import java.util.Arrays;

public class File10 {

    public static void main(String[] args) {
        int[]  boss={ 1  ,    2  ,     4  };
        int[]  emp= {0,       0,        0};
        for(int i=1 ;i<=7; i++){
            int a1=1;
            int a2=2;
            int a3=4;
            int a4=a1+a2;
            int a5=a1+a3;
            int a6=a2+a3;
            int a7=a1+a2+a3;

            if(a1==i){
                emp[0]=boss[0];
                boss[0]=0;
                System.out.println("第"+i+"天，工资正常发放了");
            }else if(a2==i){
                boss[0]=emp[0];
                emp[0]=0;
                emp[0]=boss[1];
                boss[1]=0;
                System.out.println("第"+i+"天，工资正常发放了");
            }else if(a3==i){//第4天
                //[0, 0, 4]
                //[2, 1, 0]
                boss[0]=emp[0];
                boss[1]=emp[1];
                emp[0]=0;
                emp[1]=0;

                emp[0]=boss[2];
                System.out.println("第"+i+"天，工资正常发放了");
            }else if(a4==i ){
                emp[1]=boss[0];
                boss[0]=0;
                System.out.println("第"+i+"天，工资正常发放了");
                System.out.println(Arrays.toString(boss));
                System.out.println(Arrays.toString(emp));
            }else if(a5==i){//第5天
                //[2, 1, 4]
                //[4, 0, 0]
                emp[1]=boss[1];
                boss[1]=0;
                System.out.println("第"+i+"天，工资正常发放了");
            }else if(a6==i){
                //[2, 0, 4]
                //[4, 1, 0]
                boss[1]=emp[1];
                emp[1]=0;
                emp[1]=boss[0];
                boss[0]=0;
                System.out.println("第"+i+"天，工资正常发放了");
            }else if(a7==i){

                System.out.println("第"+i+"天，工资正常发放了");
            }else{
                System.out.println("今天无法正常发放工资了");
                break;
            }//
            System.out.println(Arrays.toString(boss));
            System.out.println(Arrays.toString(emp));
        }

    }


}
